package com.youedata.modular.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youedata.modular.entity.LegalWorkersInfo;
import com.youedata.modular.mapper.LegalWorkersInfoMapper;
import com.youedata.modular.service.ILegalWorkersInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 法律工作者表 服务实现类
 * </p>
 *
 * @author hst
 * @date 2021-07-12
 */

@Transactional(rollbackFor = Exception.class)
@Service
public class LegalWorkersInfoServiceImpl extends ServiceImpl<LegalWorkersInfoMapper, LegalWorkersInfo> implements ILegalWorkersInfoService {

    //    @Override
//    public List<LegalWorkersInfo> queryWorkersInfoFuzzy(Page page, String name) {
//        return null;
//    }
    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    private LegalWorkersInfoMapper legalWorkersInfoMapper;

    @Override
    public List queryWorkersInfoFuzzy(Page page, String name) {
        return legalWorkersInfoMapper.queryWorkersInfoFuzzy(page, name);
    }

    @Override
    public List queryWorkersInfoFuzzy(Page page, String name, String tag) {
        return legalWorkersInfoMapper.listBySelective(page, name, tag);
    }
}

